﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MaoCaiJun.DataBase.Configuration.DbsAnalysis
{
    //[System.Xml.Serialization.XmlRoot("namespace")]
    [System.Serializable]

    public class Namespace
    {
        public Namespace()
        {
            _namespace.Imports.Add(new System.CodeDom.CodeNamespaceImport("System"));
            _class._namespace = this;
        }
        [System.Xml.Serialization.XmlAttribute()]

        public string Name { get { return _namespace.Name; } set { _namespace.Name = value; } }
        //[System.Xml.Serialization.XmlArray("class")]
        //[System.Xml.Serialization.XmlArrayItem("class")]

        private ClassList _class = new ClassList();
        public ClassList Class { get { return _class; } set { _class = value; } }

        private System.CodeDom.CodeNamespace _namespace = new System.CodeDom.CodeNamespace();
        public System.CodeDom.CodeNamespace GetNamespace()
        {
               
        return _namespace;
        }
    }
}
